lib/add.o: src/add.c include/add.h
	gcc -Iinclude -c src/add.c -o lib/add.o
lib/sub.o: src/sub.c include/sub.h
	gcc -Iinclude -c src/sub.c -o lib/sub.o
lib/libcal.a: lib/add.o lib/sub.o
	ar rcs lib/libcal.a lib/add.o lib/sub.o
main: lib/libcal.a lib/main.c
	gcc -Iinclude -o main lib/main.c -Llib -lcal
clean:
	rm -f lib/*.o lib/libcal.a main
